package com.dragon.common.modules.uaa.utils;

import com.dragon.common.base.exceptions.CommonException;

/**
 * @author Chris Chan
 * Create On 2025/8/25 上午10:36
 * Use for: 校验工具
 * Explain:
 */
public class VerifyUtil {
    private VerifyUtil() {
    }

    //校验密码与确认密码是否一致
    public static void verifyPasswordAndConfirmPassword(String password, String confirmPassword) {
        if (!password.equals(confirmPassword)) {
            throw new CommonException("密码与确认密码不一致");
        }
    }


}
